/*
 * Copyright (C) 2018 Logos Technology Ltd.
 */

package com.logos.common.keepalive.deviceutil;

import android.app.Activity;
import android.content.Intent;

/**
 * Created by llx on 2018/11/16.
 * 建议放在自己的项目中
 */
public class MeiZuDeviceUtil {

    /**
     * 魅族手机只能通过安全中心进行设置
     * @param context *
     */
    public static void openFlymeSecurityApp(Activity context) {
        try {
            Intent intent = new Intent("com.meizu.safe.security.SHOW_APPSEC");
            intent.addCategory(Intent.CATEGORY_DEFAULT);
            intent.putExtra("packageName", context.getPackageName());
            context.startActivity(intent);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
